/**
 * @author: linwen linwen@fjxhx.com.
 * @createDate: 2020-08-31 16:40.
 * @file: 全局工具函数.
 * @copyRight © 2020年 新和兴.All rights reserved.
 */
const getYearMonthDay = (date) => {
    let year = date.getFullYear()
    let month = date.getMonth()
    let day = date.getDate()
    return {year, month, day}
}
const getDate = (year, month, day) => {
    return new Date(year, month, day)
}

export {
    getYearMonthDay,
    getDate
}
